package two;

import java.util.Scanner;

public class test11074 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println(getNum1(n)+" "+getNum2(n)+" "+getNum3(n)+" "+getNum4(n));
    }

    public static int getNum1(int n){
        if(n==1){
            return 2;
        }else {
            return n+getNum1(n-1);
        }
    }

    public static int getNum2(int n){
        if(n==1){
            return 2;
        }else {
            return getNum2(n-1)+2*(n-1);
        }
    }

    public static int getNum3(int n){
        return 2*n*n-n+1;
    }

    public static int getNum4(int n){
        return (int) (4.5*n*n-3.5*n+1);
    }
}
